package com.by.feign;

import com.by.api.dto.LockStock;
import com.by.api.fiegn.ProductFeignClient;
import com.by.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author 江俊俊
 * @version 1.0
 * @description
 * @date 2025/4/18 17:43
 * @since JDK1.8
 */
@RestController
public class ProductFeignController implements ProductFeignClient {

    @Autowired
    ProductService productService;

    @Override
    public int saveStock(List<LockStock> lockStocks) {
        return productService.lockStock(lockStocks);
    }
}
